package com.nf.health.app;

import com.nf.health.app.utils.EnvironmentStateUtils;

import cn.bluetools.BluetoothLeService;


public class Constants {
    public static final String DESCRIPTOR = "com.umeng.share";
    // 外部存储设备的根路径
    public static final String ExternalStorageRootPath = EnvironmentStateUtils.getExternalStorageDirectory().getPath();
    public static final String BasePath = ExternalStorageRootPath + "/nf/";
    // 文件存放路径
    public static final String FileCachePath = BasePath + "FileCache/";
    // 保存图片
    public static final String ImageCachePath = BasePath + "ImageCache/";
    // 下载存储地址
    public static final String DOWNLOADPath = BasePath + "DWONLOAD/";

    public static final String IMAG_PREFIX = "[image_U_R_L]=";
    public static final String EM_PWD = "123456";

    public static String LOCAL_CODE;
    public static BluetoothLeService mBluetoothLeService;
    /************
     * 所关注的医生呢个
     *****/
    public static final String StrAttentionGroupFragment = "com.nf.health.app.mydoctor.fragment.AttentionGroupFragment";
    /************
     * 所关注的医生呢个
     *****/
    public static final int CODE_EXIT = 500;

    /***********
     * 群消息储存的TAG
     *****/
    public static final int OPEN_FORBIT_HUANXIN_MSG = 100000 * 13;
    /***********
     * 群消息开启的储存的TA值
     ******/
    public static final int CLOASE_FORBIT_HUANXIN_MSG = 10000 * 31;

    /**
     * 自定义环信布局类型
     *****/
    public static final String MESSAGE_TYPE_RECV_HEALTH_ALERT = "1";    //健康预警
    public static final String MESSAGE_TYPE_RECV_DRUG_ALERT = "2";        //用药提醒
    public static final String MESSAGE_TYPE_RECV_DOCTOR_QUESTION = "3";    //医生问卷
    public static final String MESSAGE_TYPE_RECV_IMAGE_MESSAGE = "4";    //图文消息
    public static final String MESSAGE_TYPE_RECV_ONLY_MESSAGE = "5";    //纯文消息
    public static final String MESSAGE_TYPE_RECV_DOCTOR_ADVICE = "6";    //医嘱计划
    public static final String MESSAGE_TYPE_RECV_DOCTOR_CARD = "7";        //医生名片
    public static final String MESSAGE_TYPE_RECV_DISCOUNT_CARD = "8";    //医生优惠码
    public static final String MESSAGE_TYPE_RECV_DISCOUNT_SYSTEM = "9";    //系统消息
    public static final String MESSAGE_TYPE_RECV_DISCOUNT_SYSTEM_BM = "10";    //系统消息
    public static final String MESSAGE_TYPE_RECV_DISCOUNT_SYSTEM_HEALTH = "11";    //系统消息

    /**
     * 医生的类型
     * 进行封装
     */
    public enum DoctorType {
        EFDoctorTypePrivateDoctor("20"), //私人医生
        EFDoctorTypeHealthBank("30"), //30健康银行
        EFDoctorTypeGeneralDoctor("10"),//10普通医生
        EFDoctorTypeHealthAssistant("40"), //40健康助手
        EFDoctorTypeFamilyDoctor("50"), //家庭医生
        EFDoctorTypeOnceConsultDoctor("60"),//单次问诊医生
        EFDoctorTypeHealthManager("70"),//健康管理
        EFDoctorTypeSystemMessage("80"),//系统消息
        EFDoctorTypeResponseDoctor("90");//责任医生
        private String type = "";

        DoctorType(String type) {
            this.type = type;
        }

        public String getType() {
            return type;
        }

        public void setType(String type) {
            this.type = type;
        }
    }
    /*public static final String EFDoctorTypePrivateDoctor = "20";//20私人医生
    public static final String EFDoctorTypeHealthBank = "30";//30健康银行
    public static final String EFDoctorTypeGeneralDoctor = "10";//10普通医生
    public static final String EFDoctorTypeHealthAssistant = "40"; //40健康助手
    public static final String EFDoctorTypeFamilyDoctor = "50"; //家庭医生
    public static final String EFDoctorTypeOnceConsultDoctor = "60";//单次问诊医生
    public static final String EFDoctorTypeHealthManager = "70";//健康管理
    public static final String EFDoctorTypeSystemMessage = "80";//系统消息
    public static final String  EFDoctorTypeResponseDoctor = "90" ;//责任医生*/

    /**
     * 弹出框 H5 type
     *****/
    public static final String H5_TIP_SERVICE_TO_EXPLAIN = "1";         //问诊 (服务解释tip）
    public static final String H5_TIP_GET_HEALTH_MONEY = "2";         //健康币页面 （健康币的获取tip）
    public static final String H5_TIP_HEALTH_BANK_INTRODUCE = "3";     //健康银行 （介绍tip）
    public static final String H5_TIP_BUY_DOCTOR_SERVICE = "4";         //购买医生服务提示tip
    public static final String H5_TIP_SHOP_HEALTH_MONEY = "5";         //商城页面健康币功能介绍 tip
    public static final String H5_TIP_BUY_BRACELET = "6";             //购买手环tip
    public static final String H5_TIP_MY_FAMILY_HEALTH_MANAGER = "7";//我的家人健康管理tip

    //类间传递bean类的key
    public static final String INTENT_EXTRA_BEAN = "intent_extra_bean";
    //类间传递string类的key
    public static final String INTENT_EXTRA_STRING = "intent_extra_string";

    public static final String NEW_FRIENDS_USERNAME = "item_new_friends";
    public static final String GROUP_USERNAME = "item_groups";
    public static final String CHAT_ROOM = "item_chatroom";
    public static final String ACCOUNT_REMOVED = "account_removed";
    public static final String CHAT_ROBOT = "item_robots";
    public static final String MESSAGE_ATTR_ROBOT_MSGTYPE = "msgtype";
    public static final String ACTION_GROUP_CHANAGED = "action_group_changed";
    public static final String ACTION_CONTACT_CHANAGED = "action_contact_changed";

    /***********接受特殊的标识来 用户禁言//群禁言 y禁言  n不禁言 ***/
    public static final String THE_SPECIAL_SIGN_FORBIT_USER_TTALK = "EF_GroupValue";
    /***********群禁言 的action ***/
    public static final String THE_SPECIAL_SIGN_FORBIT_USER_ACTION = "EF_GroupSetting";
    /***********群禁言 的群主Id***/
    public static final String THE_SPECIAL_SIGN_FORBIT_GROUP_ID = "EF_GroupID";
    /***********退出群，yong去刷新**/
    public static final String EXIST_SPECIAL_SIGN_FORBIT_GROUP_ID_REFRESH = "EF_Group_ID.extst.refresh";
    /***********退出群，关闭聊天界面**/
    public static final String CHAT_CLOSE = "com.nf.close.CHAT_CLOSE";
    /*************医生的Id*********/
    public static final String DOCTOR_ID = "com.nf.acton.doctorId";
    public static final String DOCTOR_NEED_PARAMS = "com.nf.acton.pay.order.service.params";
    public static final String DOCTOR_ADVICE_ID = "com.nf.acton.advice.id";


    //请求验证码的类型
    public final static String SMS_LOGIN = "login";      //个人登陆
    public final static String SMS_REGISTER = "register";   //个人注册
    public final static String SMS_RESET = "reset";      //个人重置密码
    public final static String SMS_FAMLIY = "mfamily";    //我的家人
    public final static String SMS_UPDPWD = "updpwd";     //个人修改密码
    //删除数据模块的时候，进行的type值
    /**
     * type-血压计
     */
    public static final String TYPE_BLOOD = "blood";

    /**
     * type-血糖仪
     */
    public static final String TYPE_BLOOD_GLUCOSE = "bloodsugar";

    /**
     * type-手环
     */
    public static final String TYPE_BRACELET = "bracelet";

    /**
     * type-电子秤
     */
    public static final String TYPE_ELECTRONIC_BALANCE = "balance";

    /**
     * type-汗液
     */
    public static final String TYPE_SWEAT = "sweat";

    public static final String TYPE_MY_SICK_HISTORY = "sickhistory";

    /**
     * type-尿检仪
     */
    public static final String TYPE_URINE = "urine";

    /**
     * type-体温
     */
    public static final String TYPE_TEMPERATURE = "temperature";

    /**
     * type-血氧
     */
    public static final String TYPE_OXYGEN = "oxygen";

    /**
     * type-心电
     */
    public static final String TYPE_ECG = "ecg";

    /**
     * type-身高体重
     */


    /**
     * 首页方案类型
     */
    public static final String INTERVENTION_ID = "intervention_id";//id
    public static final String INTERVENTION_MEDICINEDDIET = "medicineddiet";//药膳
    public static final String INTERVENTION_MUSIC = "music";//音乐
    public static final String INTERVENTION_SPORT = "sport";//运动
    public static final String INTERVENTION_MERIDIAN = "meridian";//经络


//...................................一些动态改变的全局变量..........................................................................................

    /**
     * 服务包中记录当前显示的包id
     * 默认-1 表示没有
     */
    public static class CHANGE_ABLE {
        public static String INTERVENTION_ID = "3";
    }
//...................................一些动态改变的全局变量..........................................................................................

    /**
     * 环信添加附加字段里的姓名参数
     */
    public static class EMContact {
        public static final String EF_USERNAME = "EF_UserName";
        public static final String EF_USERICON = "EF_UserIcon";
        public static final String EF_DoctorType = "EF_DoctorType";//发送EF_DoctorType附加字段
    }

    //...................................运动处方type................................................................................
    public static final String TYPE_HM = "housemind";           //心藏
    public static final String TYPE_HR = "heartrate";           //心率带
    public static final String TYPE_SW = "sweat";               //汗液
    public static final String DEVICE_TYPE = "deviceType";      //标示
    /**
     * 标记来自该变量来自哪里
     */
    public static final String FROM = "from";
    /**
     * 运动处方hpuid
     */
    public static final String HPUID = "hpuid";
    /**
     * 药店订单type
     */

    public static final String PHARMACY_ORDER_TYPE = "6";
    /**
     * 支付宝支付,微信支付,银联支付等URL
     */
    public static final String PAY_URL = "com.nf.pay.params.url";
    /**
     * 微信支付支付成功后来进行成功的回调
     */
    public static final String PAY_WX_SUCCESS = "com.nf.pay.success";
    /**
     * 微信支付支付成功后来进行失败的回调
     */
    public static final String PAY_WX_FAILD = "com.nf.pay.pay.faild";
    /**
     * 课题报名状态
     */
    public static final String KETI_STATE = "keti_state";
    /**
     * 传送的如果是实体类，则可用此key
     */
    public static final String BEAN_KEY = "bean_key";

}
